package com.mybatis.simple.pojo;


import java.util.Date;

public class TPassenger {

    private Long id;
    private String name;
    private String sex;
    private java.util.Date birthday;
    //添加对应关系
    private TPassports tPassports;

    public TPassports gettPassports() {
        return tPassports;
    }

    public TPassenger() {
    }

    public TPassenger(Long id, String name, String sex, Date birthday, TPassports tPassports) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.birthday = birthday;
        this.tPassports = tPassports;
    }

    public void settPassports(TPassports tPassports) {
        this.tPassports = tPassports;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }


    public java.util.Date getBirthday() {
        return birthday;
    }

    public void setBirthday(java.util.Date birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "TPassenger{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", birthday=" + birthday +
                ", tPassports=" + tPassports +
                '}';
    }
}
